<?php

namespace App\Constants\Content;

class AdCode
{

    public const JUMP_METHOD_NONE = 1; // 无动作
    public const JUMP_METHOD_INNER_PAGE = 2; // 内部页面
    public const JUMP_METHOD_OUT_LINK = 3; // 站外链接

    public static function validJumpMethod($input=null)
    {
        $arr = [
            self::JUMP_METHOD_NONE ,
            self::JUMP_METHOD_INNER_PAGE,
            self::JUMP_METHOD_OUT_LINK,
        ];
        return $input ? in_array($input,$arr) : $arr;
    }
}